package dev.alm.javaproject.common;

import lombok.Data;

@Data
public class CommonResponse {

    private String code;
    private String message;
    private Object data;

    public void success() {
        this.code = "200";
        this.message = "success";
    }

    public void fail() {
        this.code = "500";
        this.message = "fail";
    }

}
